/**
 * 题目：正整数低位到高位分开
 */

#include <stdio.h>

// 将num从低位到高位分解并输出
void inverseDecompose(int num)
{
    int tmp = num;
    if (tmp == 0)
        printf("0");
    while (tmp > 0)
    {
        printf("%3d", tmp % 10);
        tmp /= 10;
    }
    printf("\n");
}
int main()
{
    int num;
    scanf("%d", &num);
    inverseDecompose(num);
    return 0;
}